Skip to content

Conversation

Dunky13
Copy link

@Dunky13 Dunky13 commented May 8, 2024

Problem
I was using ts-node-dev to run some scripts with more than 100 arguments in process.argv. This limitation is not documented anywhere and it was hard to pinpoint why I wasn't getting all the arguments I supplied. After some debugging I boiled it down to this script.

Solution
Remove the artificatial limit of 100 arguments

When having a script with more than 100 arguments, it gets truncated. This commit removes this limitation; as I couldn't find a reason why it should be kept, and makes it hard to debug when using this together with a lot of arguments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant